import React from "react";
import {LdhMapSelect, LdhInput, LdhDatePicker} from "@biz/Components";
import {LdhSearchForm, LdhSearchItem} from "@biz/PageCompnents";


export default class Search extends React.Component {
    constructor(props) {
        super(props);
        this.onSearch = this.onSearch.bind(this);
    }


    onSearch(values) {
        let {action, store} = this.props;
        let {so} = store;
        so = {...so, ...values, pageNumber: 1};
        action.search(so);
    }


    render() {
        let {store} = this.props;
        let {loading} = store;
        return <LdhSearchForm onSearch={this.onSearch} loading={loading}>

            
            <LdhSearchItem label="订单号" name="orderNoLike">
                <LdhInput/>
            </LdhSearchItem>
            
            <LdhSearchItem label="用户手机号" name="userPhoneLike">
                <LdhInput/>
            </LdhSearchItem>
            
        </LdhSearchForm>

    }
}